﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<brjostagjof.Models.SpecialistUser>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Fagaðilar
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Fagaðilar sem tilheyra völdum flokk:</h2>

    <p></p>
    <table border="none" id="specialistTable">
    <div id="specialistListHead">
    <tr>
        <td>Nafn</td>
        <td>Fag</td>
    </tr>
    </div>
        <%foreach(var item in Model) { %>
        <tr>
              <td><a href="/MySite/ViewUserByID/<%:item.User.ID  %>"> <%: item.User.name %></a></td>
              <td><%: item.SpecialistCategory.name %></td>
        </tr>
        <%} %>
    </table>


</asp:Content>
